package com.niiwoo.civet.user.dao.mapper;

import com.niiwoo.civet.user.dao.entity.AccountExtend;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface AccountExtendMapperExt extends AccountExtendMapper{

    AccountExtend selectByOpenId(@Param("openId")String openId, @Param("platformId")Byte platformId);

    List<AccountExtend> selectByUserId(@Param("userId") String userId);

    int updateByOpenId(AccountExtend accountExtend);

    int isExistsOtherOpenId(@Param("userId")String userId, @Param("openId")String openId, @Param("platformId")Byte platformId);

}